package ai.zixing.mashibing.new_class.class06;

public class TraversalBinaryTree {

    public static class Node {
        public int value;
        public Node left;
        public Node right;

        public Node(int value) {
            value = value;
        }
    }

    public static void f(Node head) {
        if (head == null) {
            return;
        }
        // 先序
        f(head.left);
        // 中序
        f(head.right);
        // 后序
    }
}
